package com.songshan.exception;

/**
 * @author feb
 * @date 2024/6/18
 * @Description: 自定义业务异常
 */
public class BusinessException extends Exception {

  private int code;

  public BusinessException(int code, String msg) {
    super(msg);
    this.code = code;
  }

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }
}
